using System;
using System.Collections.Generic;

using DevExpress.ExpressApp;
using System.Reflection;
using DevExpress.ExpressApp.Utils;
using DevExpress.Persistent.BaseImpl;
using System.Diagnostics;


namespace AppSolution.Module
{
    public sealed partial class AppSolutionModule : ModuleBase
    {
        public AppSolutionModule()
        {
            InitializeComponent();
            TranslatorProvider.RegisterProvider(new GoogleTranslatorProvider());
        }
        //To use a Domain Component in an XAF application, the Component should be registered.
        //Override the ModuleBase.Setup method in the application's module and invoke the ITypesInfo.AddEntityToGenerate method in it:    
        public override void Setup(XafApplication application)
        {
            if (!XafTypesInfo.IsInitialized)
            {
                XafTypesInfo.Instance.AddEntityToGenerate("GoodInterFaceData", typeof(InterFaceData), typeof(BaseObject));
            }
            base.Setup(application);
        }
    }
}